var layer;
var $;
layui.use(['layedit','form','layer'], function() {
    $=layui.$;
    var layer = layui.layer;
    $("#close").on('click',function() {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index)//执行关闭
    })
})